import React, {Component,Fragment} from 'react'
class Todoitem extends Component{
	constructor(props){
		super(props)
		this.handleClick=this.handleClick.bind(this)
	}
	render(){
		return (<div onClick={this.handleClick}>{this.props.item}</div>)
			
	}
	handleClick(){
		this.props.handleDelete(this.props.index)

	}
}
export default Todoitem;